﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity
{
   public class ReturnResult
    {
        private string _time = DateTime.Now.ToString();
        /// <summary>
        /// 操作结果
        /// </summary>
        public bool Result { get; set; }
        /// <summary>
        /// 消息内容
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 返回数据
        /// </summary>
        public object Data { get; set; }
        /// <summary>
        /// 操作时间
        /// </summary>
        public string OperateTimes
        {
            get
            {
                return _time;
            }
            set
            {
                if (string.IsNullOrWhiteSpace(value))
                { _time = DateTime.Now.ToString(); }
                else
                {
                    _time = value;
                }
            }
        }
    }
}
